/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 * Description: Libata driver Vendor Hooks
 */

#ifdef CONFIG_VENDOR_LIBATA_HOOKS
#undef TRACE_SYSTEM
#define TRACE_SYSTEM libata

#define TRACE_INCLUDE_PATH trace/hooks
#if !defined(_TRACE_HOOK_LIBATA_HOOKS_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_HOOK_LIBATA_HOOKS_H
#include <linux/tracepoint.h>
#include <trace/hooks/vendor_hooks.h>

struct ata_link;

DECLARE_HOOK(vendor_sata_reset,
	TP_PROTO(struct ata_link *link),
	TP_ARGS(link));

#endif

/* This part must be outside protection */
#include <trace/define_trace.h>

#else
struct ata_link;

DECLARE_EVENT_NOP(vendor_sata_reset,
	TP_PROTO(struct ata_link *link),
	TP_ARGS(link));

#endif
